package cn.iocoder.yudao.module.enterprise.controller.admin.account.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 碳排放核算 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class AccountBaseVO {

    @Schema(description = "核算名称", required = true)
    @NotNull(message = "核算名称不能为空")
    private String name;

    @Schema(description = "核算周期类型", required = true)
    @NotNull(message = "核算周期类型不能为空")
    private Integer cycleType;

    @Schema(description = "核算年份", required = true)
    @NotNull(message = "核算核算年份不能为空")
    private String year;

    @Schema(description = "核算周期", required = true)
    @NotNull(message = "核算周期不能为空")
    private String cycle;

    @Schema(description = "同比核算")
    private Long lastAccount;

}
